#coding=utf-8

from django.contrib import admin
from question.models import Question, Category, FriendQuestion

class QuestionAdmin(admin.ModelAdmin):
    list_display = ("user", "created_time")


class CategoryAdmin(admin.ModelAdmin):
    list_display = ("name", "sequence")

class FriendQuestionAdmin(admin.ModelAdmin):
    list_display = ("question", "user")

admin.site.register(Question, QuestionAdmin)
admin.site.register(Category, CategoryAdmin)
admin.site.register(FriendQuestion, FriendQuestionAdmin)

